package com.yang.design.behavior.observe.example2;

/**
 * MQ消息发送事件
 * 角色:具体观察者
 */
public class MQEventListener implements EventListener {
    @Override
    public void doEvent(LotteryResult result) {
        System.out.println("记录用户摇号结果(MQ), 用户ID:" +  result.getUId() + ",摇号结果:" + result.getMsg());
    }
}
